gtkthemingengine: Eliminate a dead assignment
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 20 Nov 2013 17:36:16 +0000 (17:36 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 2 Dec 2013 10:36:26 +0000 (10:36 +0000)
This is technically a dead assignment, but is nice to retain for
clarity. Moving it to the variable definition shuts scan-build up.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

gtk/gtkthemingengine.c

index 775fd6ba200971d870ec6aaca5f155d9a2459e75..b38059bab0928644ce8a80b8c57f668d0a3e3231 100644 (file)
@@ -2058,10 +2058,9 @@ gtk_theming_engine_render_frame_gap (GtkThemingEngine *engine,
   GtkStateFlags state;
   gint border_width;
   GtkCssValue *corner[4];
-  gdouble x0, y0, x1, y1, xc, yc, wc, hc;
+  gdouble x0, y0, x1, y1, xc = 0.0, yc = 0.0, wc = 0.0, hc = 0.0;
   GtkBorder border;
 
-  xc = yc = wc = hc = 0;
   state = gtk_theming_engine_get_state (engine);
   junction = gtk_theming_engine_get_junction_sides (engine);